<div class="page">
	<div class="pageContent">
		<div class="pageForm">
			<div class="pageFormContent" layoutH="57">
				<textarea class="editor" tools="{tools:'mfull',upBtnText:'上传',upImgUrl:'/services/file',upImgExt:'jpg,jpeg,gif,png',upFlashUrl:'/services/file',upFlvUrl:'/services/file',upMediaUrl:'/services/file',upMediaExt:'wmv,avi,wma'}"
					name="content" rows="20" style="width:100%"></textarea>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="button" class="ok"
									onclick="callbackEditor(this)">
									提交
								</button>
							</div>
						</div>
					</li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">
									取消
								</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<script>
	function callbackEditor(obj){
		var form = $(obj).parents('.pageForm').eq(0);
		$.pdialog.closeCurrent(form.find('textarea.editor').val());
	}
</script>